//
//  ScrollableContentView.m
//  SmallElephant
//
//  Created by Faith on 2024/11/13.
//

#import "ScrollableContentView.h"

@implementation ScrollableContentView

- (void)layoutSubviews {
    dispatch_async(dispatch_get_main_queue(), ^{
        [self.yoga applyLayoutPreservingOrigin:YES dimensionFlexibility:YGDimensionFlexibilityFlexibleHeight];
        UIScrollView *parentView = (UIScrollView*)self.superview;
        parentView.contentSize = self.frame.size;
    });
}

@end
